package com.daxt.model.dic;


/**
 * @description: 模板类型
 *
 * @author: lig
 * @date: 2021-07-01
 */
public enum TemplateType {

	TYPE_1(1,"案卷目录"), //
	TYPE_2(2,"卷内目录"), //
	TYPE_3(3,"备考表"),
	TYPE_4(4,"文书归档文件"),
	TYPE_5(5,"案件封面"),
	TYPE_6(6,"脊背");

	private int key;
	private String value;

	private TemplateType(int key, String value) {
		this.key = key;
		this.value = value;
	}
	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	

	public static boolean hasKey(String key) {
		TemplateType[] values = TemplateType.values();
		for (TemplateType type : values) {
			if(type.name().equals(key)) {
				return true;
			}
		}
		return false;
	}
}
